<h2 class="contentTitle">编辑新闻流</h2>
<form action="<?php echo SITE_URL . 'index.php?c='.$controller.'&a=ajaxEdit';?>" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageContent">
        <div layouth="97" class="pageFormContent nowrap" style="height: 376px; overflow: auto;">
            <dl>
                <dt>新闻流名：</dt>
                <dd>
                    <input type="text" name="title" size="60" class="required textInput valid" value="<?php echo $info['title']; ?>">
                    <input type="hidden" name="trend_id" value="<?php echo $info['trend_id']; ?>">
                    <span class="inputInfo">填写新闻流名</span>
                </dd>
            </dl>
            <dl>
                <dt>链接地址：</dt>
                <dd>
                    <input type="text" name="link" size="60" class="required textInput valid" value="<?php echo $info['link']; ?>">
                    <span class="inputInfo">填写链接地址</span>
                </dd>
            </dl>
            <dl>
                <dt>资讯来源：</dt>
                <dd>
                    <select class="combox" name="source_id">
                        <?php
                        foreach($source_list as $k=>$v){
                            ?>
                            <option value="<?php echo $k; ?>" <?php echo $info['source_id'] == $k ? 'selected="true"' : ''; ?>><?php echo $v; ?></option>
                        <?php
                        }
                        ?>
                    </select>
                    <span class="inputInfo">请选择来源</span>
                </dd>
            </dl>
            <dl>
                <dt>显示类型：</dt>
                <dd>
                    <select class="combox" name="trend_type">
                        <?php
                        foreach($trend_type as $k=>$v){
                            ?>
                            <option value="<?php echo $k; ?>" <?php echo $info['trend_type'] == $k ? 'selected="true"' : ''; ?>><?php echo $v; ?></option>
                        <?php
                        }
                        ?>
                    </select>
                    <span class="inputInfo">新闻流显示类型</span>
                </dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">确认</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
            </ul>
        </div>
    </div>
</form>